package cn.bcsp.controller;

import cn.bcsp.pojo.SysRole;
import cn.bcsp.service.RoleService;
import com.alibaba.fastjson.JSON;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: TODO
 * @author: 颜淮川
 * @date: 2021年07月27日 9:49
 */
@RestController
public class SysRoleController {

    @Resource
    private RoleService roleService;

    @RequestMapping("/sysRole/queryAll")
    private String queryAll() {
        List<SysRole> sysRoles = roleService.queryAll();
        return JSON.toJSONString(sysRoles);
    }

}
